﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Math;
using SqlSugar;
using System.Net;
using System.Threading.Tasks;
using VOL.Core.Utilities;


using VOL.Entity.DomainModels.ApiEntity.OutPut;


namespace VOL.WebApi.Controllers.Service
{
    [Route("api/[controller]")]
    [ApiController]
    public class ProductsController : ControllerBase
    {
        private readonly ISqlSugarClient _sqlSugarClient;
        private readonly WebResponseContent _webResponse;
        public ProductsController(ISqlSugarClient sqlSugarClient, WebResponseContent webResponse)
        {
            _sqlSugarClient = sqlSugarClient;
            _webResponse = webResponse;
        }

        //[Route("getproductlist"), HttpGet]
        //public async Task<WebResponseContent> GetProductList()
        //{

        //    var query =await _sqlSugarClient.Queryable<Product>().Select<StockWaring>().ToListAsync();

        //    return query;
        //}
    }
}
